package com.ggh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jj
 * @date 2019/10/14 14:51
 */
@Data
@TableName("user_record")
public class UserRecord extends Model<UserRecord> {
    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private int id;

    /**
     * 用户id
     */
    private int userid;

    /**
     * 房间id
     */
    private String roomno;
    /**
     *房间类型
     */
    @TableField("typestr")
    private int typeStr;
    /**
     * 创建时间
     */

    @TableField("timestr")
    private Date timeStr;
    /**
     * 消费金额
     */
    @TableField("moneystr")
    private float moneyStr;

    @Override
    protected Serializable pkVal() {
        return id;
    }

}
